<template>
    <div class="article">
        <cjc-nav title="订阅号" @customRouter="customRouter"></cjc-nav>
        <iframe :src="this.$store.state.articleUrl" frameborder="0" onload="this.height=100"></iframe>
    </div>
</template>

<script>
export default {
    methods: {
        customRouter() {
            this.$router.push({
                path: '/home'
            })
            this.$store.commit('SET_subscribeContentList', '')
        }
    }
}
</script>

<style lang="less" scoped>
.article {
    height: 100vh;
    width: 100%;
    iframe {
        display: flex;
        height: calc(~'100vh - 50px');
        // margin-top: 50px;
        width: 100%;
    }
}
</style>
